#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main()
{
	int day, peach = 1;
	scanf("%d", &day);
	for (int i = 0; i < day-1; i++) {
		peach = (peach + 1) * 2;
	}
	printf("%d", peach);
	return 0;
}